<h1><span class="reg_ico"></span><?= lang('label_shiping_details'); ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url("user/profile") ?>"><?= lang('label_profile') ?></a></li>
    <?php if(isset($sales)){ ?>
    <li><a href="<?= base_url("user/sales") ?>"><?= lang('label_menu_link_sales') ?></a></li>
    <?php }else{ ?>
    <li><a href="<?= base_url("user/purshases") ?>"><?= lang('label_menu_link_purshases') ?></a></li>
    <?php } ?>
    <li><a href="<?= base_url("user/showdeal/$details->id/$details->inv_num"); if(isset($sales)) echo "/sales" ?>"><?= lang('label_deal_details') . ' (' . strtoupper($details->inv_num) . ')' ?></a></li>
    <li><?= lang('label_shiping_details') ?></li>
</ul>


<div class="page">
    <?php $this->load->view('template/default/user/top') ?>
    <?php $this->load->view('template/default/user/side') ?>
    <div class="profile_page">
        <h2 class="profile_page_title"><?= lang('label_profile') ?> &raquo; <strong><?= lang('label_deal_details') . ' (' . strtoupper($details->inv_num) . ')' ?></strong></h2>

        <div class="invoice">
            <b>&raquo; <?= lang('label_invoices_id') ?> :</b>  <?= strtoupper($details->inv_num) ?>
            <br /><b>&raquo; <?= lang('label_product_name') ?> :</b>  <a href="<?= base_url('products/view/' . $details->product_id) ?>" target="_blank"><?= $details->title ?></a>
            <?php if ($details->address) { ?>
                <br /><b>&raquo; <?= lang('label_address') ?> :</b>  <?= $details->address ?>
            <?php } ?>
            <?php if ($details->city_id) { ?>
                <br /><b>&raquo; <?= lang('label_menu_link_city') ?> :</b>  <?= get_city_name_id($details->city_id) ?>
            <?php } ?>
            <?php if ($details->mobile) { ?>
                <br /><b>&raquo; <?= lang('label_mobile') ?> :</b>  <?= $details->mobile ?>
            <?php } ?>
            <?php if ($shipingdetails->track_num) { ?>
                <br /><b>&raquo; <?= lang('label_shiping_track_num') ?> :</b>  <?= $shipingdetails->track_num ?>
            <?php } ?>
            <?php if ($shipingdetails->company) { ?>
                <br /><b>&raquo; <?= lang('label_shiping_company') ?> :</b>  <?= $shipingdetails->company ?>
            <?php } ?>
            <?php if ($shipingdetails->company_site) { ?>
                <br /><b>&raquo; <?= lang('label_shiping_company_site') ?> :</b>  <a href="<?= $shipingdetails->company_site ?>" target="_blank"><?= $shipingdetails->company_site ?></a>
            <?php } ?>
            <?php if ($shipingdetails->sent_date) { ?>
                <br /><b>&raquo; <?= lang('label_shiping_sent_date') ?> :</b>  <?= $shipingdetails->sent_date ?>
            <?php } ?>
            <?php if ($shipingdetails->create_date) { ?>
                <br /><b>&raquo; <?= lang('label_created_date') ?> :</b>  <?= $shipingdetails->create_date ?>
            <?php } ?>
            <?php if ($shipingdetails->file) { ?>
                <br /><b>&raquo; <?= lang('label_shiping_bill_image') ?> :</b><br />  <img src='<?= base_url(STORE_PATH . $shipingdetails->file) ?>'>
            <?php } ?>
        </div>
    </div></div>